package com.clear.honghefinance.biz.modules.system.member.listener;

import com.clear.honghefinance.biz.modules.system.member.service.IMemberRegisterService;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Map;

@Component
@RocketMQMessageListener(topic = "wx-event", consumerGroup = "group_rocketmq")
public class handleMpSubscribeEventListener implements RocketMQListener<Map<String, String>> {

    @Resource
    private IMemberRegisterService memberRegisterService;

    @Override
    public void onMessage(Map<String, String> stringStringMap) {
        memberRegisterService.handleMpSubscribeEventRequest(stringStringMap);
        System.out.println("handleMpSubscribeEventListener.onMessage");
    }
}
